//---------------------------------------------------------------------------

#ifndef in_garageH
#define in_garageH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "FIBDataSet.hpp"
#include "pFIBDataSet.hpp"
#include <DB.hpp>
#include <DBCtrls.hpp>
#include <Mask.hpp>
#include <ComCtrls.hpp>
//---------------------------------------------------------------------------
class TFormInGarage : public TForm
{
__published:	// IDE-managed Components
        TLabel *Label2;
        TpFIBDataSet *ds_bus;
        TLabel *Label1;
        TDBEdit *DBEdit1;
        TDataSource *DataSourceBus;
        TLabel *Label3;
        TDBEdit *DBEdit2;
        TLabel *Label4;
        TDBEdit *DBEdit3;
        TLabel *Label5;
        TLabel *Label6;
        TDBEdit *DBEdit5;
        TLabel *Label7;
        TDBEdit *DBEdit6;
        TLabel *Label8;
        TDBEdit *DBEdit7;
        TButton *ButtonSave;
        TButton *Button2;
        TpFIBDataSet *ds_head;
        TFIBBCDField *ds_headID;
        TFIBBCDField *ds_headPARENT_ID_HEAD;
        TFIBDateField *ds_headDATE_DOC;
        TFIBStringField *ds_headNUM_DOC;
        TFIBDateTimeField *ds_headDATE_SAVE_DOC;
        TFIBBCDField *ds_headID_STATE;
        TFIBBCDField *ds_headID_BUS;
        TFIBBCDField *ds_headID_ROUTE;
        TFIBDateTimeField *ds_headDATE_START_STATE;
        TFIBDateTimeField *ds_headDATE_END_STATE;
        TFIBBCDField *ds_headID_TYPE_DOC;
        TFIBDateTimeField *ds_headDATE_START_DOC;
        TFIBDateTimeField *ds_headDATE_END_DOC;
        TFIBBCDField *ds_headID_PERSONAL_MEDIC;
        TFIBBCDField *ds_headID_PERSONAL_DRIVER;
        TFIBBCDField *ds_headID_PERSONAL_MECHANIC;
        TFIBBCDField *ds_busID_BUS;
        TFIBBCDField *ds_busID_MODELS;
        TFIBStringField *ds_busNUM_BODY;
        TFIBStringField *ds_busNAME_MODELS;
        TFIBStringField *ds_busVIN;
        TFIBStringField *ds_busNUM_VR;
        TFIBDateField *ds_busDATE_VR;
        TFIBStringField *ds_busNUM_TS;
        TFIBDateField *ds_busDATE_TS;
        TFIBBCDField *ds_busID_HEAD_STATE;
        TDataSource *DataSourceHead;
        TFIBBCDField *ds_busID_STATE;
        TFIBBCDField *ds_busID_STATE_NULL;
    TpFIBDataSet *ds_head_service;
    TDataSource *DataSourceService;
    TFIBBCDField *ds_head_serviceID;
    TFIBBCDField *ds_head_servicePARENT_ID_HEAD;
    TFIBDateField *ds_head_serviceDATE_DOC;
    TFIBStringField *ds_head_serviceNUM_DOC;
    TFIBDateTimeField *ds_head_serviceDATE_SAVE_DOC;
    TFIBBCDField *ds_head_serviceID_STATE;
    TFIBBCDField *ds_head_serviceID_BUS;
    TFIBBCDField *ds_head_serviceMILEAGE;
    TLabel *Label9;
    TLabel *Label10;
    TDBEdit *DBEdit9;
    TFIBBCDField *ds_busID_HEAD_SERVICE;
    TpFIBDataSet *pFIBDataSetModels;
    TStringField *ds_busf_name_models;
    TDBLookupComboBox *DBLookupComboBox1;
    TpFIBDataSet *ds_head_insurance;
    TFIBBCDField *FIBBCDField1;
    TFIBBCDField *FIBBCDField2;
    TFIBDateField *FIBDateField1;
    TFIBStringField *FIBStringField1;
    TFIBDateTimeField *FIBDateTimeField1;
    TFIBBCDField *FIBBCDField3;
    TFIBBCDField *FIBBCDField4;
    TFIBBCDField *FIBBCDField5;
    TDataSource *DataSourceInsurance;
    TLabel *Label11;
    TLabel *Label12;
    TDBEdit *DBEdit10;
    TFIBBCDField *ds_busID_HEAD_INSURANCE;
    TFIBDateTimeField *ds_head_serviceDATE_START_DOC;
    TFIBDateTimeField *ds_head_insuranceDATE_START_DOC;
    TDateTimePicker *dt_service;
    TDateTimePicker *dt_insurance;
    TLabel *Label13;
    TDateTimePicker *dt_doc_service;
    TLabel *Label14;
    TDateTimePicker *dt_doc_insurance;
    TDateTimePicker *date_ts;
    TLabel *Label15;
    TLabel *Label16;
    TDateTimePicker *date_vr;
        void __fastcall FormShow(TObject *Sender);
        void __fastcall ButtonSaveClick(TObject *Sender);
        void __fastcall Button2Click(TObject *Sender);
        void __fastcall FormHide(TObject *Sender);
    void __fastcall dt_doc_serviceChange(TObject *Sender);
    void __fastcall dt_doc_insuranceChange(TObject *Sender);
private:	// User declarations
public:		// User declarations
        unsigned int id_state_doc;
        __fastcall TFormInGarage(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TFormInGarage *FormInGarage;
//---------------------------------------------------------------------------
#endif
